import {get} from '@/request'

/*
* 得到主页的分区
* */
export async function _getMainPage(data, callBack, handle) {
    const path = 'mainPage'
    await get(path, data).then(callBack).catch(handle)
}

/*
* 得到大家都在搜关键词
* */
export async function _getKeyword(data, callBack, handle) {
    const path = 'keyword'
    await get(path,data).then(callBack).catch(handle)
}

/*
* 得到我的收藏
* */
export async function _getMyFav(data,callback,handle) {
    const path = 'myFavorite'
    await get(path,data).then(callback).catch(handle)
}

/*
* 得到个人信息
* */
export async function _getProfile(data,callback,handle) {
    const path = 'profile'
    await get(path,data).then(callback).catch(handle)
}